﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:sys="clr-namespace:System;assembly=mscorlib"
                    xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
                    xmlns:local="clr-namespace:Eaglight"
                    xmlns:lc="clr-namespace:LightControls;assembly=LightControls">


    <Style TargetType="local:IdentifyResultsPanel">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:IdentifyResultsPanel">
                    <Border x:Name="LayoutRoot" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding CornerRadius}">
                        <StackPanel>
                            <StackPanel>
                                <lc:LcImageButton IsRounded="False" x:Name="btnClose" ImageSource="/libEL;component/res/images/close.png" ImageStretch="UniformToFill" HorizontalAlignment="Right" Margin="2" Height="18" Width="22"/>
                            </StackPanel>
                            <ComboBox x:Name="cmbLayers" Margin="3">
                                <ComboBox.ItemTemplate>
                                    <DataTemplate>
                                        <StackPanel Orientation="Horizontal" >
                                            <TextBlock Foreground="DarkBlue" FontWeight="Bold" Text="{Binding Value, Mode=OneWay}" Margin="3"/>
                                            <TextBlock Foreground="Gray" Text="{Binding LayerName, Mode=OneWay}" Margin="3"/>
                                        </StackPanel>
                                    </DataTemplate>
                                </ComboBox.ItemTemplate>
                            </ComboBox>
                            <data:DataGrid x:Name="dgAttributes" AutoGenerateColumns="False" Margin="3" MaxHeight="200">
                                <data:DataGrid.Columns>
                                    <data:DataGridTextColumn Binding="{Binding Path=Key}"/>
                                    <data:DataGridTextColumn Binding="{Binding Path=Value}"/>
                                </data:DataGrid.Columns>
                            </data:DataGrid>
                        </StackPanel>
                    </Border>
                </ControlTemplate>
                
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>
